//  IDVI 1.0 source copyright 1996 Garth A. Dickie
//
//  This source is free for non-commercial use.  No warranty, etc.
//  Please acknowledge reuse by including the line:
//
//  "Based in part on IDVI 1.0 source copyright 1996 Garth A. Dickie"
//
//  in your documentation and source code.  For commercial use or
//  distribution, please contact the author.  Please also send
//  questions, comments, bug reports, or fixes.
//
//  Best Regards,
//  Garth A. Dickie
//  dickie@elastic.avid.com

package ibook.v10.applet;

import java.applet.Applet;
import java.applet.AppletContext;
import java.applet.AudioClip;
import java.awt.Image;
import java.awt.Graphics;
import java.awt.image.ColorModel;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.util.Enumeration;
import java.util.Iterator;

//  The FilterAppletContext class should be extended, with
//  appropriate AppletContext methods overridden in the
//  derived class.

public class FilterAppletContext implements AppletContext {
    private AppletContext context;

    public FilterAppletContext( AppletContext context ) {
        this.context = context;
    }

    //  Here are all of the methods of the AppletContext interface,
    //  with trivial implementations:

    public AudioClip getAudioClip( URL url) {
        return context.getAudioClip( url );
    }

    public Image getImage( URL url ) {
        return context.getImage( url );
    }

    public Applet getApplet( String name) {
        return context.getApplet( name );
    }

    public Enumeration getApplets( ) {
        return context.getApplets( );
    }

    public void showDocument( URL url ) {
        context.showDocument( url );
    }

    public void showDocument( URL url, String target ) {
        context.showDocument( url, target );
    }

    public void showStatus( String status ) {
        context.showStatus( status );
    }

    @Override
    public void setStream(String key, InputStream stream) throws IOException {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public InputStream getStream(String key) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public Iterator<String> getStreamKeys() {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }
}
